<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>去电记录</title>
<link href="/site_media/css/css1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/site_media/js/jquery/jquery-1.3.2.js"></script>
<script type="text/javascript"> 
$(function() { 
$("#slcall").click(function() { 
if ($(this).attr("checked") == true) { // 全选 
   $("input[name='tid']").each(function() { 
   $(this).attr("checked", true); 
  }); 
} else { //取消全选 
   $("input[name='tid']").each(function() { 
   $(this).attr("checked", false); 
  }); 
} 
}); 
}); 
</script> 
</head>

<body>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%" height="50">&nbsp;</td>
  </tr>
</table>
<table width="94%" border="0" align="center" cellpadding="6" cellspacing="0" class="rbk1">
  <tr>
    <td width="100%" colspan="2"><img src="/site_media/images/s1/zkl_r3_c4.jpg" width="30" height="30" align="absmiddle" /> <a href="/marketing/call/" target="_self" class="rzt02">去电记录</a></td>
  </tr>
</table>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%">&nbsp;</td>
  </tr>
</table>
<form name="form1" id="frm" method="post" action="/marketing/call/delete/">
  <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="13%" align="center"><label> <a href="javascript:document.getElementById('frm').submit()" target="_self" class="stye">批量删除</a></label></td>
      <td width="16%" align="center"><label><a href="/marketing/call/add" target="_self" class="stye">去电登记</a></label></td>
      <td width="71%">&nbsp;</td>
    </tr>
  </table>
  <table width="94%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#bed6ee">
    <tr class="rbk2">
      <td align="center"><label><input type="checkbox" name="slcall" id="slcall" />
全选/取消</label></td>
      <td align="center" class="rzt1">电话号码</td>
      <td align="center" class="rzt1">客户</td>
      <td align="center" class="rzt1">业务员</td>
      <td align="center" class="rzt1">会话记录</td>
      <td align="center" class="rzt1">去电时间</td>
      <td align="center" class="rzt1">回访任务</td>
      <td align="center" class="rzt1">操 作</td>
    </tr>
{%for obj in pageObj.object_list %}
    <tr class="{% cycle 'rtd1' 'rtd2'%}">
      <td height="30" align="center"><input type="checkbox" name="tid" value="{{obj.id}}"/></td>
      <td align="center">{{obj.phonenum}}</td>
      <td align="center">{{obj.customer}}</td>
      <td align="center">{{obj.user}}</td>
      <td align="center">{{obj.conversition|striptags|slice:"10"}}</td>
      <td align="center">{{obj.thetime}}</td>
      <td align="center">{{obj.call_mession}}</td>
      <td align="center"><img src="/site_media/images/s1/tu1.jpg" width="18" height="18" align="absmiddle" /> <a href="/marketing/call/detail-{{obj.id}}" class="rzt03">查看</a>　<img src="/site_media/images/s1/tu3.jpg" width="18" height="18" align="absmiddle" /> <a href="/marketing/call/modify-{{obj.id}}" class="rzt03">修改</a>　<img src="/site_media/images/s1/tu2.jpg" width="18" height="18" align="absmiddle" /> <a href="/marketing/call/delete-{{obj.id}}" class="rzt03">删除</a></td>
    </tr>
{% endfor %}
  </table>
</form>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%">&nbsp;</td>
  </tr>
</table>
<table width="94%" border="0" align="center" cellpadding="2" cellspacing="0" class="rbk3">
  <tr>
    <td width="100%" height="26" align="center">
    第<span class="rzt2">{{ pageObj.number }}</span>页 ，共 <span class="rzt2">{{pageObj.paginator.num_pages}}</span>页&nbsp;&nbsp;
{% if pageObj.has_previous %}
<a href="/marketing/income/page-{{ pageObj.previous_page_number }}/" title="下一页"  class="zt1">上一页</a>&nbsp;
{% endif %}
{% for p in page_range %}
{% ifequal p pageObj.number %}
<span>{{p}}</span>
{% else %}
<a href="/marketing/income/page-{{p}}/" title="第{{p}}页"  class="zt1">{{p}}</a>
{% endifequal %}
{% endfor %}
&nbsp;
{% if pageObj.has_next %}
<a href="/marketing/income/page-{{ pageObj.next_page_number }}/" title="下一页"  class="zt1">下一页</a>
{% endif %}
</td>
  </tr>
</table>
</body>
</html>
